@extends('Admin.Layout.main')
@section('content')
    <section class="content">
        <div class="row">
            <!-- left column -->
            <div class="col-md-6">
                <!-- general form elements -->
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">{{$data['pageOrButton']}} 二维码</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    @if($data['flag'] == 1)
                        <form role="form" action="/admini/setSysimg" method="post" enctype="multipart/form-data" id="adminusernode-form">
                            @elseif($data['flag'] == 2)
                                <form role="form" action="/admini/setSysimg/{{$data['editList']->id or ''}}" method="post" id="adminusernode-form">
                                    {{ method_field('PUT') }}
                                    @endif
                                    <input type="hidden" name="_token" value="{{csrf_token()}}">
                                    <div class="box-body">
                                        <div class="form-group datadd-form-show-error has-error" <?php echo !empty($errors->all()) ? 'style="display:block;"' : '';?>><?php echo !empty($errors->all()) ? implode(' ',$errors->all()) : '';?></div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">申请检测支付后二维码</label><br>
                                            <?php
                                                if(!empty($data[0]->img1)){
                                            ?>
                                                    <img src="/{{$data[0]->img1 or ''}}" alt="">
                                            <?php
                                                }
                                            ?>
                                            <input type="file" name="img1" value="" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">申请咨询支付后二维码</label><br>
                                            <?php
                                            if(!empty($data[0]->img2)){
                                            ?>
                                            <img src="/{{$data[0]->img2 or ''}}" alt="">
                                            <?php
                                            }
                                            ?>
                                            <input type="file" name="img2" value="" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">提现二维码</label><br>
                                            <?php
                                            if(!empty($data[0]->img3)){
                                            ?>
                                            <img src="/{{$data[0]->img3 or ''}}" alt="">
                                            <?php
                                            }
                                            ?>
                                            <input type="file" name="img3" value="" class="form-control">
                                        </div>

                                    </div>
                                    <!-- /.box-body -->

                                    <div class="box-footer">
                                        <button class="btn btn-primary" type="submit">{{$data['pageOrButton']}}</button>
                                    </div>
                                </form>
                </div>
                <!-- /.box -->
            </div>
            <!--/.col (left) -->
        </div>
        <!-- /.row -->
    </section>
@endsection
@section('privatefooter')
    <!-- jquery-validator -->
    <script src="{{__BASE__}}/admin/plugins/jquery-validate/jquery.validate.min.js"></script>
    <script src="{{__BASE__}}/admin/plugins/jquery-validate/localization/messages_zh.min.js"></script>
    <script type="text/javascript" src="{{__BASE__}}/admin/dist/js/form-validate/adminusernode.js"></script>
@endsection